import { S } from '../../s';
import { IPSAppImage } from './ipsapp-image';
import { PSModelObjectImpl } from '../../psmodel-object-impl';

export class PSAppImageImpl extends PSModelObjectImpl implements IPSAppImage {
  get codeName(): string {
    return this.M.codeName;
  }

  get cssClass(): string {
    return this.M.cssClass;
  }

  get cssClassX(): string {
    return this.M.cssClassX;
  }

  get glyph(): string {
    return this.M.glyph;
  }

  get height(): number {
    return this.M.height != null ? this.M.height : 0;
  }

  get imagePath(): string {
    return this.M.imagePath;
  }

  get imagePathX(): string {
    return this.M.imagePathX;
  }

  get rawContent(): string {
    return this.M.rawContent;
  }

  get width(): number {
    return this.M.width != null ? this.M.width : 0;
  }
  get cls(): string {
    return 'PSAppImageImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._384 || cls == S._27b) return true;
    return super.instanceof(cls);
  }
}
